<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>节目包管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        var typeName = null;
        $(document).ready(function() {
            //$("#name").focus();
            $("#inputForm").validate({
                submitHandler: function(form){
                    loading('<spring:message code="common.subbmiting"/>');
                    form.submit();
                },
                errorContainer: "#messageBox",
                errorPlacement: function(error, element) {
                    $("#messageBox").text("输入有误，请先更正。");
                    if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
                        error.appendTo(element.parent().parent());
                    } else {
                        error.insertAfter(element);
                    }
                }
            });
        });
    </script>
    
    <style>
        .mgl300{margin-left: 300px;}
        .mgl400{margin-left: 400px;}
        .tu-con{font-size: 40px;margin-top: 140px;}
    </style>
    
    
</head>
<body>
<ul class="nav nav-tabs">
    <li><a href="${ctx}/source/eleSourceGroup/"><spring:message code='Program.pack.list'/></a></li>
</ul><br/>
<div class="ul-form tu-con mgl300">
        <spring:message code="create.success"/>!
</div>
<form:form id="inputForm" modelAttribute="eleSourceGroup" action="${ctx}/source/eleSourceGroup/" method="post" class="form-horizontal">
    <form:hidden path="id"/>
    <form:hidden path="name"/>
    <form:hidden path="remarks"/>
    <sys:message content="${message}"/>
<div class="mgl400" style="float: left;margin-top: 40px;">
    <shiro:hasPermission name="source:eleSourceGroup:view">
        <a id="btnDownload" href="${ctx}/source/eleSourceGroup/download?id=${eleSourceGroup.id}" class="btn btn-large btn-primary" >
            <spring:message code="download"/>
        </a>
    </shiro:hasPermission>
    <shiro:hasPermission name="source:eleSourceGroup:publish">
        <a id="btnPublish" href="${ctx}/source/eleSourceGroup/applypublish?id=${eleSourceGroup.id}" class="btn btn-large btn-primary" >
            <spring:message code="Apply.for.release"/>
        </a>
    </shiro:hasPermission>
</div>
</form:form>
</body>
</html>